package com.geekhalo.admin.domain.menu.create;

import com.geekhalo.admin.domain.menu.create.CreateMenuCommand; 
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class CreateMenuContext{
    private CreateMenuCommand command;

    private CreateMenuContext(CreateMenuCommand command){
         this.command = command;
    }

    public static CreateMenuContext apply(CreateMenuCommand command) {
        CreateMenuContext context = new CreateMenuContext(command);
        return context;
    }
}
